
#include <config.h>
#include <klib.h>

void kzero(char *addr, size_t len){

  int i = 0;
  while (i < len) addr[i++] = 0;

}

void kcopy(char *addr, char *dest, size_t len){

  int i = 0;
  for ( ; i < len; i++){
    dest[i] = addr[i];
  }

}

size_t strlen(char *str){

  unsigned int i = 0;
  while (str[i] != 0) i++;
  return i;

}
